package com.xjrsoft.module.customerTwo.AppManage.service_support_order_service.service;

import com.xjrsoft.module.customerTwo.AppManage.service_support_order_service.entity.ServiceSupportOrder;
import com.xjrsoft.module.customerTwo.AppManage.service_support_order_service.entity.ServiceSupportOrderTable;
import com.xjrsoft.module.customerTwo.AppManage.service_support_order_service.entity.ServiceSupportOrderTableDetails;
import com.xjrsoft.module.customerTwo.AppManage.service_support_order_service.entity.ServiceSupportService;
import com.xjrsoft.module.customerTwo.AppManage.service_support_order_service.dto.ServiceSupportOrderListDto;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 *  服务类
 *
 * @author lisen
 * @since 2024-04-26
 */
public interface IServiceSupportOrderService extends IService<ServiceSupportOrder> {
	/**
	 * 自定义分页
	 *
	 * @param pageListDto
	 * @return
	 */
	IPage<ServiceSupportOrder> getPageList(ServiceSupportOrderListDto pageListDto);

	List<ServiceSupportOrderTable> getServiceSupportOrderTableByParentId(Integer parentId);

	List<ServiceSupportOrderTableDetails> getServiceSupportOrderTableDetailsByParentId(Integer parentId);

	List<ServiceSupportService> getServiceSupportServiceByParentId(Integer parentId);

	Integer addServiceSupportOrder(ServiceSupportOrder serviceSupportOrder, ServiceSupportOrderTable serviceSupportOrderTable, List<ServiceSupportOrderTableDetails> serviceSupportOrderTableDetailsList);

	boolean addServiceSupportservice(Integer id,ServiceSupportService serviceSupportService);

	boolean updateServiceSupportOrder(ServiceSupportOrder serviceSupportOrder,List<ServiceSupportOrderTable> serviceSupportOrderTables);

	boolean opinion(ServiceSupportOrder serviceSupportOrder);

	boolean delete(String ids);
}
